package teleradiologia.service;

import teleradiologia.domain.Picture;
import teleradiologia.repository.PictureDao;

public class PictureManipulatorImpl implements PictureManipulator {
	private PictureDao pictureDao;
	
	@Override
	public long create(Picture picture) {
		return this.pictureDao.create(picture);
	}

	@Override
	public void delete(Picture picture) {
		this.pictureDao.delete(picture);
	}

	@Override
	public Picture getById(long id) {
		return this.pictureDao.getById(id);
	}

	@Override
	public void setPictureDao(PictureDao pictureDao) {
		this.pictureDao = pictureDao;
	}
}
